package com.member.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.member.shop.domain.SysBizUserAddress;

import java.util.List;

/**
 * 地址Service接口
 *
 * @author lixinchen
 * @date 2024-01-09
 */
public interface ISysBizUserAddressService extends IService<SysBizUserAddress> {
    /**
     * 查询地址
     *
     * @param id 地址主键
     * @return 地址
     */
    public SysBizUserAddress selectSysBizUserAddressById(Long id);

    /**
     * 查询地址列表
     *
     * @param queryWrapper 地址
     * @return 地址集合
     */
    public List<SysBizUserAddress> selectSysBizUserAddressList(LambdaQueryWrapper<SysBizUserAddress> queryWrapper);

    /**
     * 新增地址
     *
     * @param sysBizUserAddress 地址
     * @return 结果
     */
    public int insertSysBizUserAddress(SysBizUserAddress sysBizUserAddress);

    /**
     * 修改地址
     *
     * @param sysBizUserAddress 地址
     * @return 结果
     */
    public int updateSysBizUserAddress(SysBizUserAddress sysBizUserAddress);

    /**
     * 批量删除地址
     *
     * @param ids 需要删除的地址主键集合
     * @return 结果
     */
    public int deleteSysBizUserAddressByIds(Long[] ids);

    /**
     * 删除地址信息
     *
     * @param id 地址主键
     * @return 结果
     */
    public int deleteSysBizUserAddressById(Long id);

    void updateAddress(SysBizUserAddress sysBizUserAddress);

    void insertAddress(SysBizUserAddress sysBizUserAddress);

    List<SysBizUserAddress> selectSysBizUserAddressList(SysBizUserAddress sysBizUserAddress);

    void removeErpAddress(Long id);

    void updateAddressErp(SysBizUserAddress sysBizUserAddress, Long userId);

    void insertAddressErp(SysBizUserAddress sysBizUserAddress, Long userId);
}
